package ru.pashkan.emulator;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {

    private static final Logger log = LoggerFactory.getLogger(Main.class);

    public static void main(String[] args){

        System.out.println("hi");
//        log.info("emulator started");
//        log.error("error here");
//        log.debug("now debug");
//        try {
            ApplicationContext appContext = new ClassPathXmlApplicationContext(new String[]{"applicationContext.xml"});

            BasicShell shell = (BasicShell) appContext.getBean("emulatorShell");
            shell.init(args[0]);

//        } catch (Throwable e) {
//            System.out.println("ERROR " + e);
//      }
    }
}
